import pygame
from pygame.locals import *
from mastergoal.common.piece import *
from util.vector import *
import os

GRAPHICS_PATH = 'mastergoal/gui/graphics'
PIECES_PATH = 'mastergoal/gui/graphics/pieces'

PIECE_SIZE = (40,40)

class UI:
        
    class States:
        
        (SETUP, GAME_PLAY, GAME_PAUSED, GAME_FINISHED) = range(4)
        
    def init(self, game):
        self.game = game
        self.screen = game.screen
        
    def update_state(self, new_state):
        
        if new_state == UI.States.INIT:
            self.current_screen = SetupScreen(self)
            
class UIScreen:
    
    def init(self, ui):
        self.game = ui.game
        self.ui = ui
    
class SetupScreen(UIScreen):
    
    def init(self, ui):
        
        UIScreen.__init__(self, ui)
        
        